import request from "@/utils/request";

// 查询spu图片列表
export function listImages(query) {
  return request({
    url: "/product/spuimages/list",
    method: "get",
    params: query,
  });
}

// 查询spu图片详细
export function getImages(id) {
  return request({
    url: "/product/spuimages/" + id,
    method: "get",
  });
}

// 新增spu图片
export function addImages(data) {
  return request({
    url: "/product/spuimages",
    method: "post",
    data: data,
  });
}

// 修改spu图片
export function updateImages(data) {
  return request({
    url: "/product/spuimages",
    method: "put",
    data: data,
  });
}

// 删除spu图片
export function delImages(id) {
  return request({
    url: "/product/spuimages/" + id,
    method: "delete",
  });
}
